package com.cloudm.technician.ui.modules.personal.personal_center

import com.cloudm.technician.data.db.DbHelper
import com.cloudm.technician.data.network.CommonApi
import com.cloudm.technician.data.network.PersonalApi
import com.cloudm.technician.data.preferences.PreferencesHelper
import com.cloudm.technician.di.ForUploadPic
import com.cloudm.technician.di.PerFragment
import com.qiniu.android.storage.UploadManager
import dagger.Module
import dagger.Provides

/**
 * 作者: wesley
 * 时间: 2017/12/26
 * 描述: 提供实例
 */
@Module
class PersonalCenterPresenterModule(private val view: PersonalCenterContract.View) {

    @PerFragment
    @Provides
    fun providePersonalCenterPresenter(personalApi: PersonalApi, @ForUploadPic commonApi: CommonApi,
                                       uploadManager: UploadManager,
                                       preferencesHelper: PreferencesHelper,
                                       dbHelper: DbHelper) = PersonalCenterPresenter(view,
            personalApi, commonApi, uploadManager, preferencesHelper, dbHelper)
}